import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/reset.css'
import { createFromIconfontCN } from '@ant-design/icons-vue'
const IconFontCn = createFromIconfontCN({
  scriptUrl: '//at.alicdn.com/t/c/font_4737416_0ch6k8ysifbe.js'
})
import * as antIcons from '@ant-design/icons-vue'
import './styles/common.css'

const app = createApp(App)

window._AMapSecurityConfig = {
  securityJsCode: '665dd667eeae59099d6937da66c10104'
}

Object.keys(antIcons).forEach((iconName) => {
  app.component(iconName, antIcons[iconName])
})
app.component('IconFontCn', IconFontCn)
app.use(router)
app.use(createPinia())
app.use(Antd)

app.config.globalProperties.$antIcons = antIcons

app.mount('#app')
